--[[--

	队伍协议 编号2000-2999
--]]--

local M = {}

M.types = [[

.party_arg {
	party_id 0 : integer
	account_id 1 : integer
	char_id 2 : integer
}

.party_member {
	account_id 0 : integer
	char_id 1 : integer
	name 2 : string
	class 3 : integer
	lv 4 : integer 
	leader 5 : integer
	online 6 : integer
}

.party {
	party_id 0 : integer 
	name 1 : string
	count 2 : integer 
	member 3 : *party_member

}

]]

M.c2s = [[

parse_search_party_name 2001 {

	request {
	# 	name 0 : string
	}

	response {
		str 0 : string
	}
}

parse_party_info 2002 {
	request {
	# 	party_id 0 : integer
	# 	char_id 1 : integer 
	}

	# response {
	# 	party 0 : party
	# }

		response {
		str 0 : string
	}

}

parse_create_party 2003 {

	request {
	
	# 	name 0 : string
	# 	party_member 1 : party_member
	}

	# 	response {
	# 	party 0 : party
	# 	}

		response {
		str 0 : string
	}

}

parse_destory_party 2004 {
	
	request {
	# 	party_id 0 : integer
	}

	response {
		str 0 : string
	}
}

parse_party_leave 2005 {

	request {

	# 	member_leave 0 : party_arg
	}

		response {
		str 0 : string
	}
}

parse_party_leader_change 2006 {

	request {
	 # 	leader_change 0 : party_arg
	}

		response {
		str 0 : string
	}

}

parse_party_kick_member 2007 {

	request {
	#  	kick_member 0 : party_arg
	}

	response {
		str 0 : string
	}
}

parse_party_message 2008 {

	request {
	 # 	party_id 0 : integer
	 # 	account_id 1 : integer
	 # 	message 2 : string
	}

	response {
		str 0 : string
	}
}

parse_party_add_member 2009 {

	request {

	 # 	party_id 0 : integer
	 # 	party_member 1 : party_member
	}

		response {
		str 0 : string
	}

}

]]

M.s2c = [[]]

return M 
